package com.xyw.his00.pojo.dbpojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xyw.his00.pojo.newpojo.ExportPdfFileTemplate;
import com.xyw.his00.service.newservice.ExportMedicalRecordPdf;
import com.xyw.his00.service.newservice.ExportPdf;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@TableName("medical_record")
@NoArgsConstructor
@AllArgsConstructor
public class MedicalRecord implements ExportMedicalRecordPdf {
    @TableId(value="id",type = IdType.AUTO)
    private Integer id;
    private Integer registerId;//关联挂号表id
    private String readme;//主诉
    private String present;//现病史
    private String presentTreat;//现病治疗情况
    private String history;//既往史
    private String allergy;//过敏史
    private String physique;//体格检查
    private String proposal;//检验建议
    private String careful;//注意事项
    private String diagnosis;//断诊结果
    private String cure;//理处意见

    public MedicalRecord(Integer registerId, String readme, String present, String presentTreat, String history, String allergy, String physique) {
        this.registerId = registerId;
        this.readme = readme;
        this.present = present;
        this.presentTreat = presentTreat;
        this.history = history;
        this.allergy = allergy;
        this.physique = physique;
    }

    @Override
    public ExportPdfFileTemplate createMedicalRecordPdf(Class<? extends ExportPdf> exportedPdfClass) {
        return null;
    }
}
